import request from '@/utils/request'

export function getTechnicianListByPage(data) {
  return request.get('/technician/list', { params: data })
}

export function getAllTechnician(data) {
  return request.get('/technicians', data)
}

export function addTechnician(data) {
  return request.post('/technician', data)
}

export function updateTechnician(data) {
  return request.put('/technician', data)
}

export function deleteTechnician(id) {
  return request.delete('/technician/' + id, id)
}
